<?php
/*// Kiem tra xem nguoi dang nhap hien thoi co quyen thuc hien chuc nang nay hay khong
$function_code = _CONST_ONEGATE_RECORD_UPDATE;   //Update tat ca
if((!_check_permission_on_function($_SESSION['staff_id'], $_ISA_APP_CODE, $function_code))){?>
	<script>
		alert("<? echo _CONST_FUNCTION_PERMISSION_ERROR; ?>");
		if (_MODAL_DIALOG_MODE==1){
			window.location = "<? echo $v_url; ?>";
		}else{
			window.history.back();
		}	
	</script><?
	exit;
}*/

$v_record_id = 0;
if(isset($_REQUEST['hdn_record_id'])){
	$v_record_id = intval($_REQUEST['hdn_record_id']);
}
$v_idea_id_list = $_REQUEST['hdn_list_id']; 
if(_is_sqlserver()){
	$cmd = mssql_init("Onegate_IdeaDelete",$conn); 
	mssql_bind($cmd, "@p_id_list", $v_idea_id_list, SQLVARCHAR);    
	$result = mssql_execute($cmd); 
	$rs = @mssql_fetch_array($result);
	$v_error = _replace_bad_char(trim($rs['RET_ERROR']));
}
if (!is_null($v_error) and $v_error<>""){?>
	<script>
		alert("<? echo $v_error; ?>");
		window.history.back();
	</script><?php
	exit;
}?>
<form action="index.php"  Name="f_back" method="post">
	<input type="hidden" name="fuseaction" value="DISPLAY_ALL_IDEA">	
	<input type="hidden" name="hdn_record_id"  value="<?php echo $v_record_id; ?>">
</form>		
<Script language="javascript">	
	document.forms(0).submit();
</Script> 


